package com.fh.dto;

import com.fh.util.PageData;

import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;

public class TranListResponse {

    public static List<TranListResponse> getList(List<PageData> list){
        List<TranListResponse> data = new ArrayList<TranListResponse>();
        for (PageData page:list){
            TranListResponse response = new TranListResponse();
            response.setDepartment(page.getString("EI_DEPARTMENT"));
            response.setBalanceAfert((Integer) page.get("BALANCEAFERT"));
            response.setBalanceBefore((Integer) page.get("BALANCEBEFORE"));
            response.setTranAmt((Integer) page.get("TD_AMOUNT"));
            response.setEmpName(page.getString("EI_NAME"));
            response.setOrgEnName(page.getString("AL_ENAME"));
            response.setTranTypeValue(page.getString("TRAN_TYPE_VALUE"));
            response.setTranType(page.getString("TRAN_TYPE"));
            response.setOrgName(page.getString("AL_NAME"));
            response.setTranDateTime(page.getString("TD_TIME"));
            response.setTson(page.getString("TD_SN"));
            response.setRummeryEnName(page.getString("RI_NAME"));
            response.setRummeryName(page.getString("RI_ENAME"));
            data.add(response);
        }
        return data;
    }
    /**
     * 交易流水号
     */
    private String tson;
    /**
     * 交易时间
     */
    private String tranDateTime;

    /**
     * 交易类型
     */
    private String tranType;
    /**
     * 交易后余额
     */
    private Integer balanceAfert;
    /**
     * 交易前余额
     */
    private Integer balanceBefore;
    /**
     * 交易金额
     */
    private Integer tranAmt;
    /**
     * 公司名称
     */
    private String orgName;

    /**
     * 部门
     */
    private String department;
    /**
     * 公司英文名
     */
    private String orgEnName;
    /**
     * 员工姓名
     */
    private String empName;
    /**
     * 酒店名称
     */
    private String rummeryName;
    /**
     * 酒店英文名称
     */
    private String rummeryEnName;

    private String tranTypeValue;

    public String getTranTypeValue() {
        return tranTypeValue;
    }

    public void setTranTypeValue(String tranTypeValue) {
        this.tranTypeValue = tranTypeValue;
    }

    public String getTranType() {
        return tranType;
    }

    public void setTranType(String tranType) {
        this.tranType = tranType;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTson() {
        return tson;
    }

    public void setTson(String tson) {
        this.tson = tson;
    }

    public String getTranDateTime() {
        return tranDateTime;
    }

    public void setTranDateTime(String tranDateTime) {
        this.tranDateTime = tranDateTime;
    }

    public Integer getBalanceAfert() {
        return balanceAfert;
    }

    public void setBalanceAfert(Integer balanceAfert) {
        this.balanceAfert = balanceAfert;
    }

    public Integer getBalanceBefore() {
        return balanceBefore;
    }

    public void setBalanceBefore(Integer balanceBefore) {
        this.balanceBefore = balanceBefore;
    }

    public Integer getTranAmt() {
        return tranAmt;
    }

    public void setTranAmt(Integer tranAmt) {
        this.tranAmt = tranAmt;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOrgEnName() {
        return orgEnName;
    }

    public void setOrgEnName(String orgEnName) {
        this.orgEnName = orgEnName;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getRummeryName() {
        return rummeryName;
    }

    public void setRummeryName(String rummeryName) {
        this.rummeryName = rummeryName;
    }

    public String getRummeryEnName() {
        return rummeryEnName;
    }

    public void setRummeryEnName(String rummeryEnName) {
        this.rummeryEnName = rummeryEnName;
    }
}
